import request from "../utils/request";
const getLogin = async (data) => {
    return await request.post('/users/login', data)
}
const getRegister = async (data) => {
    return await request.post('/users/register', data)
}
const getList = async () => {
    return await request.get('/users/get')
}
const searList = async (id) => {
    return await request.get('/users/get/?phone=' + id)
}
const getLogout = async () => {
    return await request.get('/users/logout')
}
const updUser = async (id, data) => {
    return await request.put(`/users/update/${id}`, data)
}
const getUserFriend = async (id) => {
    console.log(id);
    return await request.get('/users/friend?id'+id)
}

export {
    getLogin,
    getRegister,
    getList,
    searList,
    getLogout,
    updUser,
    getUserFriend
}